<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
body a{text-decorate:none;font-size:12px}
</style>
<script language="javascript">

function myFormCheck(theform)
{
   if(theform.theFile.value == "")
    {
       alert("请点击浏览按钮，选择您要上传的文件!")
       theform.theFile.focus;
       return (false);
    }
    else
    {
       str= theform.theFile.value;
       strs=str.toLowerCase();
       lens=strs.length;
       extname=strs.substring(lens-4,lens);
       if(extname!=".xls" || extname!=".xlsx")
       {
         alert("请选择excel文件！")
         return (false);
       }
      
    }
}

function successDao(){
	document.getElementByName("uploadform").submit();
	alert("导入成功");
}
</script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>excle上传</title>
</head>
<body>
    <form name="uploadform" action="/map/pages/admin/upload!excel.do"  method="post" >
    	<a href="javascript:void(0)">下载文件模版</a><br>
       <input type="file" name="file"/>
       <input type="submit" name="" value="导入" />
    </form>

</body>
</html>